const mongoose = require('mongoose')
const mongoUrl = 'mongodb://localhost:27017/guigu_zhipin'

module.exports = app =>{
    mongoose.connect(mongoUrl, {useNewUrlParser: true, useUnifiedTopology: true},() => {
        console.log('数据库连接成功!')
    })
}